-- GENERATED SPELL FOR [Jadefire Rogue] --


function spell0_7106(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7106', 607, 1)
end

function spell1_7106(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(13579,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7106', 4255, 1)
end

function spell2_7106(pUnit, Event) --@Jadefire,Self--
pUnit:FullCastSpellOnTarget(13578,pUnit)
pUnit:RegisterEvent('Sorts_7106', 8348, 1)
end

function Sorts_7106(pUnit, Event)
local choix_sorts_7106 = math.random(0, 2)
if choix_sorts_7106 == 0 then
pUnit:RegisterEvent('spell0_7106', 1, 1)
end
if choix_sorts_7106 == 1 then
pUnit:RegisterEvent('spell1_7106', 1, 1)
end
if choix_sorts_7106 == 2 then
pUnit:RegisterEvent('spell2_7106', 1, 1)
end
end

function mob7106_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7106', math.random(1500, 3000), 1)
end

function mob7106_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7106_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7106_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7106, 1, 'mob7106_Action')
RegisterUnitEvent(7106, 2, 'mob7106_Leave')
RegisterUnitEvent(7106, 3, 'mob7106_Kill')
RegisterUnitEvent(7106, 4, 'mob7106_Die')
